#include "lib_global.h"
#include "Scene.h"
#include "ospotlight.h"

extern "C" MY_EXPORT QObject *create(QString className){
    if (className.compare("Scene") == 0) {
        OScene* o = new OScene();
        return (QObject*)(o);
    } else if (className.compare("Entity") == 0) {
        return (QObject*)(new OEntity());
    } else if (className.compare("Node") == 0) {
        return (QObject*)(new ONode());
    } else if (className.compare("Plane") == 0) {
        return (QObject*)(new OPlane());
    } else if (className.compare("Light") == 0) {
        return (QObject*)(new OLight());
    } else if (className.compare("SpotLight") == 0) {
        return (QObject*)(new OSpotLight());
    } else if (className.compare("Camera") == 0) {
        return (QObject*)(new OCamera());
    } else {
        return NULL;
    }
}

